import request from '@/utils/request'

// 查询报告类别列表
export function listType(query) {
  return request({
    url: '/system/reportType/list',
    method: 'get',
    params: query
  })
}

// 查询报告类别详细
export function getType(guid) {
  return request({
    url: '/system/reportType/' + guid,
    method: 'get'
  })
}

// 新增报告类别
export function addType(data) {
  return request({
    url: '/system/reportType',
    method: 'post',
    data: data
  })
}

// 修改报告类别
export function updateType(data) {
  return request({
    url: '/system/reportType',
    method: 'put',
    data: data
  })
}

// 删除报告类别
export function delType(businessTypeId) {
  return request({
    url: '/system/reportType/' + businessTypeId,
    method: 'delete'
  })
}

// 导出报告类别
export function exportType(query) {
  return request({
    url: '/system/reportType/export',
    method: 'get',
    params: query
  })
}